package DBClasses;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.UNSPECIFIED)
public class ItemPair
{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	public Long getId()
	{
		return id;
	}

	@Persistent
	private Long id1;

	public Long get1id()
	{
		return id1;
	}

	@Persistent
	private Long id2;

	public Long get2id()
	{
		return id2;
	}

	@Persistent
	private Long count;

	public Long getCount()
	{
		return count;
	}

	public void setCount(Long cnt)
	{
		count = cnt;
	}

	public ItemPair(Long id1, Long id2)
	{
		this.id1 = id1;
		this.id2 = id2;
		this.count = 1L;
	}
}
